<?php
class PukAction{
    public function pukGenerator(){
         $random = rand(111111,999999);
         return $random;
    }

    public function pukCreator($transactionID){
        $transaction = new Application_Model_DbTable_Transaction();
        $puk = $this->pukGenerator();
        $data=array('puk'=>$puk);
        $transaction->update($data, "transaction_id=".$transactionID);
        return $puk;

    }

}


?>
